import actions from './actions'
import mutations from './mutations'

const state = {
  typeList: [],
  tagList: [],
  recommendList: [],
  archivesList: [],
  carouselList: []
}

// 计算属性
const getters = {
  types: state => state.typeList,
  tags: state => state.tagList,
  recommends: state => state.recommendList,
  archives: state => state.archivesList,
  carousels: state => state.carouselList
}

export default {
  namespaced: true,
  state,
  getters,
  actions,
  mutations
}
